
package com.mashibing.rabbitmq_boot.config;

/**
 * @Classname RabbitMQConfig
 * @Description TODO
 * @Date 2022/4/21 11:10
 * @Created by 666
 */
//@Configuration
//public class RabbitMQConfig {
//    public static final String EXCHANGE = "boot-exchange";
//    public static final String QUEUE = "boot-queue";
//    public static final String ROUNTING_KEY = "*.black.*";
//
//    //创建topic交换机
//    @Bean
//    public Exchange getExchange() {
//        return ExchangeBuilder.topicExchange(EXCHANGE).build();
//    }
//
//    //创建queue
//    @Bean
//    public Queue getQueue() {
//        return QueueBuilder.durable(QUEUE).build();
//    }
//
//    //交换机绑定
//    @Bean
//    public Binding bootBing(Exchange exchange, Queue queue) {
//        return BindingBuilder.bind(queue).to(exchange).with(ROUNTING_KEY).noargs();
//    }
//}
